import time

from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.select import Select

drive = webdriver.Chrome()
drive.maximize_window()
drive.get("https://iviewui.com/view-ui-plus/component/form/date-picker")
time.sleep(1)
drive.find_element(By.XPATH, "//input[@class='ivu-input ivu-input-default ivu-input-with-suffix']").send_keys(
    "2024-03-19")
time.sleep(3)
# 取值第二个元素加一个下标1
drive.find_elements(By.XPATH, "//input[@class='ivu-input ivu-input-default ivu-input-with-suffix']")[1].send_keys(
    "2024-03-19 - 2024-03-21")
time.sleep(3)
drive.close()
